home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVEditUtils.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  1.8 KB  |  79 lines  |  [TEXT/MPS ]

  1. // SVEditUtils.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7. #ifndef __SVEDITUTILS__
  8. #define __SVEDITUTILS__
  9.  
  10. #include <Types.h>
  11. #include <Quickdraw.h>
  12. #include <Packages.h>
  13. #include <GestaltEqu.h>
  14. #include <Editions.h>
  15. #include <Printing.h>
  16.  
  17. #ifndef __SVEDITGLOBALS__
  18. #include "SVEditGlobals.h"
  19. #endif
  20.  
  21. pascal Boolean GestaltAvailable();
  22.  
  23. pascal Boolean CheckEnvironment();
  24.  
  25. pascal void ShowError(Str255 theError,
  26.                       long   theErrorCode);
  27.  
  28. pascal Boolean FeatureIsImplemented(OSType theFeature,
  29.                                     short  theTestBit);
  30.  
  31. pascal void GetTempFileName(DPtr   aDoc,
  32.                             Str255 newString);
  33.  
  34. pascal Boolean Ours(WindowPtr aWindow);
  35.  
  36. pascal void SetShortMenus();
  37.  
  38. pascal void SetLongMenus();
  39.  
  40. pascal void SetStyleMenu(DPtr theDoc);
  41.  
  42. pascal void SetFontMenu(DPtr theDoc);
  43.  
  44. pascal void SetEditMenu(DPtr theDoc);
  45.  
  46. pascal void AdornDefaultButton(DialogPtr theDialog, short theItem);
  47.  
  48. pascal void DrawDefaultOutline(DialogPtr theDialog, short theItem);
  49.  
  50. pascal void RetrieveText(DialogPtr aDialog,
  51.                                                short     anItem,
  52.                                                Str255    aString);
  53.  
  54. pascal void SetText( DialogPtr aDialog,
  55.                                          short     itemNo,
  56.                                          Str255    theString);
  57.  
  58. pascal void GetRectOfDialogItem(DialogPtr theDialog, short theItem, Rect *theRect);
  59.  
  60. /*changed for 7.0 and Outline Fonts*/
  61.  
  62. pascal void SetSizeMenu(DPtr theDoc);
  63.  
  64. pascal long LesserOf(long A, long B);
  65.  
  66. pascal long GreaterOf(long A, long B);
  67.         
  68. pascal Boolean DoPageSetup(DPtr theDoc);
  69.  
  70. pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
  71.  
  72. pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
  73.  
  74. pascal short         NumToolboxTraps(void);
  75. pascal TrapType GetTrapType(short theTrap);
  76. pascal Boolean    TrapAvailable(short theTrap);
  77.  
  78. #endif
  79.